import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String s = scanner.next();
            StringBuffer ret = new StringBuffer();
            int i = 0, n = s.length();
            while(i<n) {
                if(s.charAt(i) == '_') {
                    ret.append(Character.toUpperCase(s.charAt(i+1)));
                    i+=2;
                }else {
                    ret.append(s.charAt(i));
                    i++;
                }
            }
            System.out.println(ret);
        }
    }
}

